package com.tian.controller;

import com.tian.entity.ExceptionalRetroaction;
import com.tian.service.ExceptionalRetractionService;
import com.tian.util.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年09月24日 11:58
 * 在线刷题 1200+题和1000+篇干货文章：<a href="https://woaijava.cc/">博客地址</a>
 * <p>
 * 异常反馈
 */
@RestController
@RequestMapping("/exceptional/retraction")
public class ExceptionalRetractionController {

    @Resource
    private ExceptionalRetractionService exceptionalRetractionService;

    @PostMapping("/add")
    public CommonResult add(@RequestBody ExceptionalRetroaction exceptionalRetraction) {
        return exceptionalRetractionService.add(exceptionalRetraction);
    }
}
